class Cat(object):
    def say(self):
        print("i am a cat")

class Dog(object):
    def say(self):
        print("i am a Dog")

class Duck(object):
    def say(self):
        print("i am a Duck")

animal_list = [Cat, Dog, Duck]
for animal in animal_list:
    animal().say()